﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ActiveAddUpdate.aspx.cs"
    Inherits="LongQuanWeb.Admin.ActiveAddUpdate" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="gv_css" cellspacing="1" cellpadding="3" width="96%" align="center">
            <tr>
                <td class="UserTableRow2" width="33%" colspan="3">
                    活动名称：
                    <asp:TextBox ID="txt_title" runat="server" MaxLength="50" Width="448px" ValidationGroup="name"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_title"
                        Display="Dynamic" ErrorMessage="活动名称不能为空！" ValidationGroup="name" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="UserTableRow2" width="33%" colspan="3">
                    标签：
                    <asp:TextBox ID="txt_label" runat="server" MaxLength="50" Width="432px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="UserTableRow2" width="33%" colspan="3">
                    发布时间：
                    <asp:TextBox ID="txt_createtime" runat="server" MaxLength="50" Width="177px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_createtime"
                        Display="Dynamic" ErrorMessage="发布时间不能为空！" ValidationGroup="name" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txt_createtime"
                        ErrorMessage="发布时间格式为yyyy-MM-dd！" ValidationExpression="^(\d{4})-(0\d{1}|1[0-2])-(0\d{1}|[12]\d{1}|3[01])$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="UserTableRow2" width="33%" colspan="3">
                    来源：
                    <asp:TextBox ID="txt_source" runat="server" MaxLength="50" Width="432px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="UserTableRow2" width="33%" colspan="2">
                    图片：
                    <input id="File1" runat="server" type="file" /><asp:Button ID="Button1" runat="server"
                        Text="上传服务器" OnClick="btn_upload1_Click" />
                </td>
                <td class="UserTableRow2" width="33%">
                    <img id="img1" runat="server" style="width: 250px; height: 180px;" src="#" />
                    <asp:HiddenField ID="imgpath" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="UserTableRow2" width="33%" colspan="3">
                    活动内容：
                    <FCKeditorV2:FCKeditor ID="txtContent" runat="server" BasePath="~/fckeditor/" Height="400">
                    </FCKeditorV2:FCKeditor>
                </td>
            </tr>
            <tr>
                <td class="UserTableRow1" colspan="3">
                    <div align="left">
                        <asp:Button ID="btn_save" runat="server" Text="保 存" OnClick="btn_save_Click" ValidationGroup="name" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btn_return" runat="server" Text="返 回" OnClick="btn_return_Click"
                            CausesValidation="False" />
                    </div>
                </td>
            </tr>
        </table>
        </br>
    </div>
    </form>
</body>
</html>
